/* src/components/timeline/AudioClip.css */
.timeline-clip.audio-clip {
    background: rgba(174, 39, 39, 0.7); /* 音频Clip的绿色透明渐变 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
    opacity: 0.85;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    border-radius: 4px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    transition:
        background-color 0.1s ease,
        opacity 0.1s ease;
    z-index: 1;
}

.timeline-clip.audio-clip.narration {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.7), rgba(142, 68, 173, 0.4)); /* 旁白Clip的紫色透明渐变 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(142, 68, 173, 0.3);
    opacity: 0.85;
}

.audio-waveform {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    opacity: 0.8;
    /* 实际应用中，这里应该渲染音频波形图 (SVG/Canvas) */
}

.audio-clip .clip-duration {
    position: absolute;
    bottom: 2px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7em;
    color: #fff;
    z-index: 1;
}

/* 删除按钮样式 */
.delete-button {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.timeline-clip:hover .delete-button {
    opacity: 1;
}

.delete-button:hover {
    background-color: rgba(231, 76, 60, 0.7);
}

/* 删除操作进行中保持漏斗形状 */
.delete-button.deleting,
.delete-button.deleting:hover {
    cursor: wait;
}

/* 音频文字容器样式 */
.audio-text-container {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 22px; /* 为右侧的删除按钮留出空间 */
    height: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    padding: 0 4px;
    z-index: 2;
}

/* 音频文字样式 */
.audio-text {
    font-size: 1em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1;
}
